//
//  AppDelegate.swift
//  微博08
//
//  Created by 123 on 16/2/29.
//  Copyright © 2016年 Tsr. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        setupAppearance()
        
        // 1.创建window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        // 创建tabBarVC
        let tabBarVC = LTMainController()
        
        // 2.设置window的跟控制器
        window?.rootViewController = tabBarVC
        
        // 3.设置成为主窗口,并显示
        window?.makeKeyAndVisible()
        
        return true
    }
    
    func setupAppearance() {
        
        // 设置导航栏按钮的外观颜色
        let item = UIBarButtonItem.appearance()
        
        item.tintColor = UIColor.orangeColor()
    }


}

